<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<style type="text/css">
.dateWidth1{
   width:195px;
}
.select_width{
   width:130px;
}
</style>
<x:parse xml="${param.xmlstr}" var="xmlData" />

<table class="t_css" width="100%" border="0" cellpadding="0" id="basicInfo"
	cellspacing="1">
	
	<!-- 第一板块 -->
	<tr>
		<td colspan="8"  class="t_bar2">标准认定情况</td>
	</tr>
	<tr>
		<td  width="170" align="right" rowspan="2">标准名称：</td>
		<td  width="140" align="right" ><span class="color_red">*</span>中文名称：</td>
		<td  colspan="6">
			<input id="zh_title" name="proposal/zh_title" label="中文名称" type="text" 
			required class="input_css required maxlength:100"  style="width: 400px;" maxlength="100" 
			value="<x:out select="$xmlData/data/proposal/zh_title" />"/>
		</td>
	</tr>
	<tr>
		<td  width="140" align="right" ><span class="color_red">*</span>英文名称：</td>
		<td  colspan="6">
			<input id="en_title" name="proposal/en_title" label="英文名称" type="text" 
			required class="input_css required maxlength:100"  style="width: 400px;" maxlength="100" 
			value="<x:out select="$xmlData/data/proposal/en_title" />"/>
		</td>
	</tr>

	<tr>
		<td align="right" ><span class="color_red">*</span>标准批准立项时间：</td>
		<!-- approval_date批准时间（批准立项时间） -->
		<td colspan="3">
		<c:set var="approval_date">
			<x:out select="$xmlData/data/proposal/approval_date" /> 
		</c:set> 
		<cpt:date id="approval_date" name="proposal/approval_date"
				value="${approval_date}" className=" required date" label="标准批准立项时间"></cpt:date>
		</td>
		
		<td align="right" ><span class="color_red">*</span>标准发布机构立项目计划或批准文号：</td>
		<!-- approval_number批准文号 -->
		<td colspan="3">
			<input type="text" style="width: 200px"
			name="proposal/approval_number" id="approval_number" class="required "
			maxlength="100" label="标准发布机构立项目计划或批准文号"
			value="<x:out select="$xmlData/data/proposal/approval_number" />" />  
		</td>
	</tr>
	
	<tr>
		<td align="right" ><span class="color_red">*</span>标准发布机构：</td>
		<!-- Released_value发布机构取值,Released_name发布机构名称 -->
		<td colspan="7">     
			<label> 
				<input type="radio" class="do " id="org_01"
					style="vertical-align: middle;" name="released" label="国际标准化组织"
					value="01" /><span style="vertical-align: middle;">国际标准化组织</span>
			</label> 
			<label>
				<input type="radio" class="do " id="org_02"
					style="vertical-align: middle;" name="released" label="国家标准委"
					value="02" /><span style="vertical-align: middle;">国家标准委</span>
			</label>  
			<label>
				<input type="radio" class="do " id="org_03"
					style="vertical-align: middle;" name="released" label="省质量监督管理局"
					value="03" /><span style="vertical-align: middle;">省质量监督管理局</span>
			</label>
			<input type="hidden" name="proposal/released_value" id="released_value" class="required"
				value="<x:out select="$xmlData/data/proposal/released_value" />" label="标准发布机构" /> 
			<input type="hidden" name="proposal/released_name" id="released_name" 
				value="<x:out select="$xmlData/data/proposal/released_name" />"/>
		</td>
	</tr>
	
   <tr>
		<td align="right" ><span class="color_red">*</span>标准发布时间：</td>
		<!-- post_date发布时间（标准发布时间） -->
		<td colspan="3">
		<c:set var="post_date">
			<x:out select="$xmlData/data/proposal/post_date" /> 
		</c:set> 
		<cpt:date id="post_date" name="proposal/post_date"
				value="${post_date}" className=" required date" label="标准发布时间"></cpt:date>
		</td>
		<!-- standard_number标准编号 -->
		<td align="right" ><span class="color_red">*</span>标准编号：</td>
		<td colspan="3">
			<input type="text" style="width: 200px"
			name="proposal/standard_number" id="standard_number" class="required "
			maxlength="100" label="标准编号"
			value="<x:out select="$xmlData/data/proposal/standard_number" />" />  
		</td>
	</tr>
   
   <tr>
		<td align="right" ><span class="color_red">*</span>标准类别：</td>
		<!-- Released_value标准类别取值,Released_name标准类别名称 -->
		<td colspan="7">     
			<label> 
				<input type="radio" class="do " id="standard_01"
					style="vertical-align: middle;" name="standard" label="国际标准"
					value="01" /><span style="vertical-align: middle;">国际标准</span>
			</label> 
			<label>
				<input type="radio" class="do " id="standard_02"
					style="vertical-align: middle;" name="standard" label="国家标准"
					value="02" /><span style="vertical-align: middle;">国家标准</span>
			</label>  
			<label>
				<input type="radio" class="do " id="standard_03"
					style="vertical-align: middle;" name="standard" label="行业标准"
					value="03" /><span style="vertical-align: middle;">行业标准</span>
			</label>
			<label>
				<input type="radio" class="do " id="standard_04"
					style="vertical-align: middle;" name="standard" label="地方标准"
					value="04" /><span style="vertical-align: middle;">地方标准</span>
			</label>
			<input type="hidden" name="proposal/standard_value" id="standard_value" class="required"
				value="<x:out select="$xmlData/data/proposal/standard_value" />" label="标准类别" /> 
			<input type="hidden" name="proposal/standard_name" id="standard_name" 
				value="<x:out select="$xmlData/data/proposal/standard_name" />"/>
		</td>
	</tr>
   
   <tr>
		<td align="right" rowspan="2"><span class="color_red">*</span>单位标准化工作机构名称：</td>
		<!-- standardOrg_name单位标准化工作机构名称 -->
		<td rowspan="2" colspan="3">
			<input type="text" style="width: 200px"
				name="proposal/standard_org_name" id="standard_org_name" class="required "
				maxlength="100" label="单位标准化工作机构名称"
				value="<x:out select="$xmlData/data/proposal/standard_org_name" />" />  
		</td>
		<td rowspan="2"  align="right" >标准化工作人员：</td>
		<td align="right"><span class="color_red">*</span>专职人数：</td>
		<!-- fullTime_number专职人数(全职人数) -->
		<td colspan="2" align="center">
			<input type="text" style="width: 95px;text-align:right;"
			name="proposal/fulltime_number" id="fulltime_number" onfocus="InitInput.setNumber(this,9,0,0)"  class="required"
			maxlength="100" label="专职人数" 
			value="<x:out select="$xmlData/data/proposal/fulltime_number" />" />  
		</td>
	</tr>
	 <tr>
		<td align="right"><span class="color_red">*</span>兼职人数：</td>
		<!-- partTime_number兼职人数 -->
		<td colspan="2" align="center">
			<input type="text" style="width: 95px;text-align:right;"
			name="proposal/parttime_number" id="parttime_number" onfocus="InitInput.setNumber(this,9,0,0)" class="required "
			maxlength="100" label="兼职人数" 
			value="<x:out select="$xmlData/data/proposal/parttime_number" />" />  
		</td>
	</tr>
	
	<tr>
	<td  align="right" nowrap><span class="color_red">*</span>申请日期：</td>
		<td colspan='7'>
			<c:set var="submit_date"><x:out select="$xmlData/data/proposal/submit_date" /></c:set>
			<cpt:date id="submit_date" name="proposal/submit_date" value="${submit_date}" className=" required date" label="申报日期"></cpt:date> 
		</td>
	</tr>
	
	<!-- 第二板块 -->
   <tr>
		<td colspan="8"  class="t_bar2">单位标准化工作机构负责人情况</td>
	</tr>
	
   <tr>
		<td align="right" ><span class="color_red">*</span>姓名：</td>
		<!-- principal_name负责人名称 -->
		<td colspan="3">
			<input type="text" required class="input_css required"
			name="proposal/principal_name" maxlength="100" label="单位标准化工作机构负责人-->姓名"
			value="<x:out select="$xmlData/data/proposal/principal_name" />" />
		</td>
		<!-- principal_duty负责人职务 -->
		<td align="right" ><span class="color_red">*</span>职务：</td>
		<td colspan="3">
			<input type="text" required class="input_css required"
			name="proposal/principal_duty" maxlength="100" label="单位标准化工作机构负责人-->职务"
			value="<x:out select="$xmlData/data/proposal/principal_duty" />" />
		</td>
	</tr>
   
   <tr>
		<td align="right" ><span class="color_red">*</span>电话：</td>
		<!-- principal_tel负责人电话 -->
		<td colspan="3">
			<input name="proposal/principal_tel" label="单位标准化工作机构负责人-->电话" type="text"
			required class="input_css required" maxlength="20"
			value="<x:out select="$xmlData/data/proposal/principal_tel" />" />
		</td>
		<td align="right" ><span class="color_red">*</span>传真：</td>
		<!-- principal_fax负责人职务 -->
		<td colspan="3">
			<input name="proposal/principal_fax" label="单位标准化工作机构负责人-->传真" type="text"
			required class="input_css required" maxlength="20"
			value="<x:out select="$xmlData/data/proposal/principal_fax" />" />  
		</td>
	</tr>
	
	<tr>
		<td align="right" ><span class="color_red">*</span>手机：</td>
		<!-- principal_mobile负责人手机 -->
		<td colspan="3">
			<input name="proposal/principal_mobile" label="单位标准化工作机构负责人-->手机" type="text"
			maxlength="11" required class="input_css required mobile"
			maxlength="20"
			value="<x:out select="$xmlData/data/proposal/principal_mobile" />" />
		</td>
		<!-- principal_eamil负责人电子邮箱 -->
		<td align="right" ><span class="color_red">*</span>电子邮箱：</td>
		<td colspan="3">
			<input name="proposal/principal_email" label="单位标准化工作机构负责人-->电子邮箱" type="text"
			required class="input_css required email" maxlength="50"
			value="<x:out select="$xmlData/data/proposal/principal_email" />" />
		</td>
	</tr>
	
	
	<!-- 第三板块 -->
   <tr>
		<td colspan="8"  class="t_bar2">单位标准化工作机构联系人情况</td>
	</tr>
	
	<tr>
		<td align="right" ><span class="color_red">*</span>姓名：</td>
		<!-- contactor_name联系人名称 -->
		<td colspan="3">
			<input type="text" name="proposal/contactor_name" required
			class="input_css required" maxlength="20" label="单位标准化工作机构联系人-->姓名"
			value="<x:out select="$xmlData/data/proposal/contactor_name" />" />
		</td>
		<!-- contactor_duty联系人职务 -->
		<td align="right" ><span class="color_red">*</span>职务：</td>
		<td colspan="3">
			<input type="text" name="proposal/contactor_duty" required
			class="input_css required" maxlength="20" label="单位标准化工作机构联系人-->职务"
			value="<x:out select="$xmlData/data/proposal/contactor_duty" />" />
		</td>
	</tr>
   
   <tr>
		<td align="right" ><span class="color_red">*</span>电话：</td>
		<!-- contactor_tel联系人电话 -->
		<td colspan="3">
			<input name="proposal/contactor_tel" label="单位标准化工作机构联系人-->电话" type="text"
			required class="input_css required" maxlength="20"
			value="<x:out select="$xmlData/data/proposal/contactor_tel" />" />
		</td>
		<td align="right" ><span class="color_red">*</span>传真：</td>
		<!-- contactor_fax联系人职务 -->
		<td colspan="3">
			<input name="proposal/contactor_fax" label="单位标准化工作机构联系人-->传真" type="text"
			required class="input_css required" maxlength="20"
			value="<x:out select="$xmlData/data/proposal/contactor_fax" />" />  
		</td>
	</tr>
	
	<tr>
		<td align="right" ><span class="color_red">*</span>手机：</td>
		<!-- contactor_mobile联系人手机 -->
		<td colspan="3">
			<input name="proposal/contactor_mobile" label="单位标准化工作机构联系人-->手机" type="text"
			maxlength="11" required class="input_css required mobile"
			maxlength="20"
			value="<x:out select="$xmlData/data/proposal/contactor_mobile" />" />
		</td>
		<!-- contactor_eamil联系人电子邮箱 -->
		<td align="right" ><span class="color_red">*</span>电子邮箱：</td>
		<td colspan="3">
			<input name="proposal/contactor_email" label="单位标准化工作机构联系人-->电子邮箱" type="text"
			required class="input_css required email" maxlength="50"
			value="<x:out select="$xmlData/data/proposal/contactor_email" />" />
		</td>
	</tr>
	
	<tr>
		<td align="right" ><span class="color_red">*</span>发布的标准是否第一起草人：</td>
		<!-- isFirstPeople发布的标准是否第一起草人 -->
		<td colspan="3">     
			<label> 
				<input type="radio" class="do " id="first_01"
					style="vertical-align: middle;" name="is_first" label="是"
					value="01" /><span style="vertical-align: middle;">是</span>
			</label> 
			<label>
				<input type="radio" class="do " id="first_02"
					style="vertical-align: middle;" name="is_first" label="否"
					value="02" /><span style="vertical-align: middle;">否</span>
			</label>  
			<input type="hidden" name="proposal/is_first_value" id="is_first_value" class="required"
				value="<x:out select="$xmlData/data/proposal/is_first_value" />" label="发布的标准是否第一起草人" /> 
			<input type="hidden" name="proposal/is_first_name" id="is_first_name" 
				value="<x:out select="$xmlData/data/proposal/is_first_name" />"/>
		</td>
		
		<td align="right" ><span class="color_red">*</span>标准性质：</td>
		<!-- standard_kind标准性质 -->
		<td colspan="3">     
			<label> 
				<input type="radio" class="do " id="kind_01"
					style="vertical-align: middle;" name="standard_kind" label="制订"
					value="01" /><span style="vertical-align: middle;">制订</span>
			</label> 
			<label>
				<input type="radio" class="do " id="kind_02"
					style="vertical-align: middle;" name="standard_kind" label="修订"
					value="02" /><span style="vertical-align: middle;">修订</span>
			</label>  
			<input type="hidden" name="proposal/standard_kind_value" id="standard_kind_value" class="required"
				value="<x:out select="$xmlData/data/proposal/standard_kind_value" />" label="标准性质" /> 
			<input type="hidden" name="proposal/standard_kind_name" id="standard_kind_name" 
				value="<x:out select="$xmlData/data/proposal/standard_kind_name" />"/>
		</td>
	</tr>
	
	<tr>
		<td  width="140" align="right" ><span class="color_red">*</span>其他起草或组织单位名称：</td>
		<td  colspan="7">
			<input id="other_orgname" name="proposal/other_orgname" label="其他起草或组织单位名称" type="text" 
			 class="input_css required maxlength:100"  style="width: 200px;" maxlength="100" 
			value="<x:out select="$xmlData/data/proposal/other_orgname" />"/>
		</td>
	</tr>
	
	
	<!-- 第四板块 -->
	<tr>
		<td colspan="8"  class="t_bar2">申报项目资金情况</td>
	</tr>
	<tr>
		<td  align="right">项目类别：</td>
		<td  colspan="3" ><x:out select="$xmlData/data/proposal/grant_name" /></td> 
		<td  align="right" >支持方式：</td>
		<td  colspan="3" >
			<span name="proposal/sponsor_category"><x:out select="$xmlData/data/proposal/sponsor_category" /></span> 
		</td>
	</tr>

	<tr>
		<td  align="right" nowrap><span class="color_red">*</span>申请资助资金（万元）：</td>
		<td  colspan="3">
		<input  name="proposal/sqje" id="sqje" label="申请资助资金" type="text"  class="input_css required" style="text-align: right" onfocus="InitInput.setNumber(this,9,4,2)" value="<x:out select="$xmlData/data/proposal/sqje" />"/> 
		</td>
		<td  align="right">资金级次：</td>
		<td colspan="3">
		<span  name="proposal/fund_level">市级</span>
		</td>
	</tr>
	
	<tr>
		<td  align="right">归口管理部门：</td>
		<td  colspan="3">
			<span name="proposal/org_name">无锡市质量技术监督局</span> 
		</td>
	   <td  align="right">管理类别：</td>
		<td  colspan="3">
		<span name="proposal/manage_category"><x:out select="$xmlData/data/proposal/manage_category" />
		</span>
		</td>
	</tr>
	
	<tr>
		<td  align="right"><span class="color_red">*</span>项目所属产业：</td>
		<td nowrap colspan="7">
			<c:set var="industry"><x:out select="$xmlData/data/proposal/industry_value" /></c:set>
			<cpt:checkbox key="industry" name="industry" repeatColumn="5" style="border: 0px; padding: 0px; margin: 0px;"></cpt:checkbox>
			<input type="hidden" id="industry_value" name="proposal/industry_value" class="required" value="${industry}" label="项目所属产业">
			<input type="hidden" name="proposal/industry_name" value="<x:out select="$xmlData/data/proposal/industry_name" />">
		</td>
	</tr>
	
	<tr>
	    <td  align="right">功能分类：</td>
		<td  colspan="7">
		<span name="proposal/grant_function"><x:out select="$xmlData/data/proposal/grant_function" /></span>
		</td>
	</tr>
	
	<!-- 第五板块 -->
	<tr>
		<td colspan="8" class="t_bar2">申请资助依据条款</td>
	</tr>
	<tr>
		<td  colspan="8" >
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		<span name="proposal/policy_foundation"><x:out select="$xmlData/data/proposal/policy_foundation" /></span> 
		</td>
	</tr>
	
</table>
<br/>

<table class="t_css" width="100%" border="0" cellpadding="0" cellspacing="1">
<tr>
		<td    class="t_bar2" colspan="8">人员信息</td>
		
	</tr>
<tr>
		<td  align="right"><span class="color_red">*</span>项目联系人：</td>
		<td  >
			<input  name="proposal/contact_psn_cname" label="项目联系人" type="text" required class="input_css required"   maxlength="100" value="<x:out select="$xmlData/data/proposal/contact_psn_cname" />"/> 
		</td>
		<td  align="right"><span class="color_red">*</span>联系电话：</td>
		<td  >
			<input  name="proposal/contact_psn_tel" label="项目联系人联系电话" type="text" required class="input_css required"   maxlength="50" value="<x:out select="$xmlData/data/proposal/contact_psn_tel" />"/> 
		</td>
		<td  align="right"><span class="color_red">*</span>联系手机：</td>
		<td  >
			<input  name="proposal/contact_psn_mobile" label="项目联系人联系手机" type="text" required maxlength="11" required class="input_css required mobile"   maxlength="20" value="<x:out select="$xmlData/data/proposal/contact_psn_mobile" />"/> 
		</td>
		<td  align="right"><span class="color_red">*</span>电子邮箱：</td>
		<td  >
			<input  name="proposal/contact_psn_email" label="项目联系人电子邮箱" type="text" required class="input_css required email"   maxlength="100" value="<x:out select="$xmlData/data/proposal/contact_psn_email" />"/> 
		</td>
	</tr>
	<tr>
		<td  align="right">项目负责人：</td>
		<td>
		    <span name="proposal/fzr_psnname" ><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/zh_name" /></span>
		</td>
		<td  align="right">联系电话：</td>
		<td  >
		<span name="proposal/fzr_tel" ><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/tel_work" /></span>
		</td>
		<td  align="right">联系手机：</td>
		<td  >
		<span name="proposal/fzr_mobile" ><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/mobile" /></span>
		</td>
		<td  align="right">电子邮箱：</td>
		<td  >
		<span name="proposal/fzr_mail"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/email" /></span>
		</td>
	</tr>
	
	
</table>
<script type="text/javascript">

$(function(){
	cydw('org1');
	cydw('org2');
});

function cydw(id){
	var count =0 ;
	$("#"+id).find("input[type='text']").each(function(){
		if($.trim($(this).val()) != ''){
			count +=1;
		}
	});
	if(count != 0){
		$("#"+id).find("input[type='text']").each(function(){
			$(this).addClass("required");
		});
		$("#"+id).find("span[id^='color']").each(function(){
			$(this).css('display','');
		});
	}else{
		$("#"+id).find("input[type='text']").each(function(){
			$(this).removeClass("required");
	});
		$("#"+id).find("span[id^='color']").each(function(){
			$(this).css('display','none');
		});
	}
}

function initTreeValue2CallBack(){
	cydw('org1');
	cydw('org2');
}
function setEmptyValueForTree(id){
	$("#"+id).val("");
	$("#"+id+"_hideId").val("");
	$("#"+id+"_hideName").val("");
	$("#"+id+"_code").val("");
	$("#"+id+"_value").val("");
	$("#"+id+"_name").val("");
	$("#"+id + ",[name$='/"+id+"_code']" + ",[name$='/"+id+"_name'],[name$='/"+id+"_value']").val("");
	$("#sqdm").val("");
	cydw('org1');
	cydw('org2');
}
</script>


